#include "cobject.h"

CObject::CObject(QObject *parent) :
    QObject(parent), m_valid(false)
{
    m_id = KInvalidId;
}


bool CObject::valid() {
    return m_valid;
}

void CObject::setValid(bool valid) {
    if (m_valid != valid) {
        m_valid = valid;
        emit validChanged();
    }
}

int CObject::id() {
    return m_id;
}

void CObject::setId(int id) {
    if (m_id != id) {
        m_id = id;
        emit idChanged();
    }
}

